﻿package mortal.game.net
{
    import Engine.RMI.*;
    import com.gengine.manager.*;
    import extend.php.*;
    import flash.display.*;
    import mortal.common.global.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class RMISessionEvent extends Object implements IRMISessionEvent
    {
        private var alert:Sprite;

        public function RMISessionEvent()
        {
            return;
        }// end function

        public function onAbandon(param1:Session) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.SocketClose));
            PHPSender.sendToURLByPHP(SenderType.GameSocketClose, ParamsConst.instance.username);
            return;
        }// end function

        private function closeHandler(param1:int) : void
        {
            if (ParamsConst.instance.actimUrl)
            {
                BrowerManager.instance.getUrl(ParamsConst.instance.actimUrl);
            }
            return;
        }// end function

    }
}
